<template>
  <div >
      <h2>ref 属性</h2>
      <input  v-model="count">
  </div>
</template>

<script>
export default {
  name: "refDemo",
  components: {},
  data() {
    return {
      count: 1,
    };
  },
  beforeCreate() {},
  created() {},
  beforeMount() {},
  mounted() {},
  beforeUpdate() {},
  updated() {},
  activated() {},
  computed: {},
  watch: {},
  methods: {
    reset() {
        this.count = 0;
    },
  },
  beforeUnmount() {},
  unmounted() {},
};
</script>
<style scoped></style>
